<?php

header("Content-Type: application/save");
header('Content-Disposition: attachment; filename="../cadastro.csv"');
header("Content-Transfer-Encoding: binary");
header('Expires: 0'); 
header('Pragma: no-cache'); 

// nesse momento ele le o arquivo e envia
$fp = fopen("../cadastro.csv", "r"); 
fpassthru($fp); 
fclose($fp); 

?>
